package com.yunyi.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.yunyi.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 区域表
 * @TableName sys_area_a
 */
@TableName(value ="sys_area_a")
public class SysAreaA extends BaseEntity {
    /**
     * 编号
     */
    @TableId(value = "id")
    private String id;

    /**
     * 父级编号
     */
    @TableField(value = "parent_id")
    private String parent_id;

    /**
     * 所有父级编号
     */
    @TableField(value = "parent_ids")
    private String parent_ids;

    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 区域编码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 区域类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 删除标记
     */
    @TableField(value = "del_flag")
    private String del_flag;

    /**
     * 
     */
    @TableField(value = "account_id")
    private String account_id;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private List<SysAreaA> children;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParent_id() {
        return parent_id;
    }

    public void setParent_id(String parent_id) {
        this.parent_id = parent_id;
    }

    public String getParent_ids() {
        return parent_ids;
    }

    public void setParent_ids(String parent_ids) {
        this.parent_ids = parent_ids;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDel_flag() {
        return del_flag;
    }

    public void setDel_flag(String del_flag) {
        this.del_flag = del_flag;
    }

    public String getAccount_id() {
        return account_id;
    }

    public void setAccount_id(String account_id) {
        this.account_id = account_id;
    }

    public List<SysAreaA> getChildren() {
        return children;
    }

    public void setChildren(List<SysAreaA> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", parent_id=").append(parent_id);
        sb.append(", parent_ids=").append(parent_ids);
        sb.append(", name=").append(name);
        sb.append(", sort=").append(sort);
        sb.append(", code=").append(code);
        sb.append(", type=").append(type);
        sb.append(", create_by=").append(getCreateBy());
        sb.append(", create_date=").append(getCreateTime());
        sb.append(", update_by=").append(getUpdateBy());
        sb.append(", update_date=").append(getUpdateTime());
        sb.append(", remarks=").append(getRemark());
        sb.append(", del_flag=").append(del_flag);
        sb.append(", account_id=").append(account_id);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}